package com.sxj.corejava.code16_单例模式;

/**
 *
 */
public class Test01_饿汉模式 {
    public static void main(String[] args) {
        SomeBean someBean = SomeBean.getInstance();
        SomeBean someBean2 = SomeBean.getInstance();
        SomeBean someBean3 = SomeBean.getInstance();
        System.out.println(someBean == someBean2);
        System.out.println(someBean == someBean3);
    }
}
